package com.xuelang.pipeline.artifact.app.resource;

import com.xuelang.pipeline.artifact.app.nexus3v1.request.WebhookRepositoryAssetRequest;
import com.xuelang.pipeline.artifact.app.nexus3v1.request.WebhookRepositoryComponentRequest;
import com.xuelang.pipeline.artifact.app.resource.request.HarborEventRequest;

/**
 * 封装NexusOSS 3.37.3-02以上组件制品相关接口-对应Components
 *
 * @author xiwen.zxg
 * @since 2024/7/9
 */
public interface CapabilityWebhookRepositoryService {

    /**
     *
     *
     * @param webhookRepositoryRequest
     */
    void rmRepositoryComponent(WebhookRepositoryComponentRequest webhookRepositoryRequest);

    /**
     *
     *
     * @param webhookRepositoryRequest
     */
    void rmRepositoryAsset(WebhookRepositoryAssetRequest webhookRepositoryRequest);

    /**
     *
     * @param payload
     */
   void processHarborArtifact(HarborEventRequest payload);
}
